package com.project.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_sellCar")
public class SellCarBean {
    /**销售车id*/
    @TableId(value = "pk_sellCarId", type = IdType.AUTO)
    private Integer sellCarId;
    /**销售车中，出库的数量*/
    @TableField("sc_num")
    private Integer num=1;
    /**产品外键*/
    @TableField("fk_productId")
    private String productId;
    /**销售员*/
    @TableField("fk_userId")
    private Integer userId;
    /**销售车中的产品*/
    @TableField(exist = false)
    private ProductBean productBeanInSellCar;
    /**查看销售车的用户*/
    @TableField(exist = false)
    private UserBean userBeanInSellCar;

    public SellCarBean() {
    }

    public Integer getSellCarId() {
        return sellCarId;
    }

    public void setSellCarId(Integer sellCarId) {
        this.sellCarId = sellCarId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public ProductBean getProductBeanInSellCar() {
        return productBeanInSellCar;
    }

    public void setProductBeanInSellCar(ProductBean productBeanInSellCar) {
        this.productBeanInSellCar = productBeanInSellCar;
    }

    public UserBean getUserBeanInSellCar() {
        return userBeanInSellCar;
    }

    public void setUserBeanInSellCar(UserBean userBeanInSellCar) {
        this.userBeanInSellCar = userBeanInSellCar;
    }

    @Override
    public String toString() {
        return "SellCarBean{" +
                "sellCarId=" + sellCarId +
                ", num=" + num +
                ", productId=" + productId +
                ", userId=" + userId +
                ", productBeanInSellCar=" + productBeanInSellCar +
                ", userBeanInSellCar=" + userBeanInSellCar +"\n"+
                '}';
    }
}
